
#ifndef sk_surf_h__
#define sk_surf_h__

//basically,the GUI system use only a single surface,which is used by GDI.
//every loaded bmp will be converted to a surface


#include "sk_types.h"
struct SK_SURF;
typedef struct SK_SURF SK_SURF;

SK_SURF* SK_SURF_malloc(SK_INT32 w,SK_INT32 h);
SK_INT32 SK_SURF_getWidth(SK_SURF *o);
SK_INT32 SK_SURF_getHeight(SK_SURF *o);
SK_COLORDEF SK_SURF_alphaMix(SK_COLORDEF srcPixel, SK_COLORDEF dstPixel,SK_BYTE alpha);
void SK_SURF_copy(const SK_SURF * src,const SK_RECT * srcRect,SK_SURF * dst,SK_BYTE alpha);
void SK_SURF_free(SK_SURF *o);



#endif // sk_surf_h__
